package cn.ac.jaas.ljx.spring.beanlife;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan("cn.ac.jaas.ljx.spring.beanlife")
public class DemoConfig {

	@Bean(initMethod = "init", destroyMethod = "destroy")
	public DemoBean demoBean() {
		return new DemoBean();
	}
	
	@Bean
	public DemoJSRBean demoJSRBean() {
		return new DemoJSRBean();
	}
}
